﻿#include "topo_wire.h"
#include "topo_edge.h"

CAGD::TopoWire::TopoWire() : m_shell(nullptr)
{
}

CAGD::TopoWire::~TopoWire()
{
    // 删除所有 coedge
    for (auto e : m_edges)
        delete e->Coedge();
}

CAGD::TopoShell *&CAGD::TopoWire::Shell()
{
    return m_shell;
}

std::vector<CAGD::TopoEdge *> &CAGD::TopoWire::Edges()
{
    return m_edges;
}

CAGD::TopoType CAGD::TopoWire::Type() const
{
    return TopoType::WIRE;
}
